﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace HgRemote
{
	public partial class RevertDialog : Form
	{
		public bool BackupChanges { get; private set; }

		public RevertDialog()
		{
			InitializeComponent();
		}

		private void CancelBtn_Click(object sender, EventArgs e)
		{
			this.DialogResult = DialogResult.Cancel;
			this.Close();
		}

		private void YesDiscard_Click(object sender, EventArgs e)
		{
			this.BackupChanges = false;
			this.DialogResult = DialogResult.Yes;
			this.Close();
		}

		private void YesBackup_Click(object sender, EventArgs e)
		{
			this.DialogResult = DialogResult.Yes;
			this.BackupChanges = true;
			this.Close();
		}

	}
}
